package com.shunli.cterminal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shunli.cterminal.entity.SystemResultRedEnvelope;
import com.shunli.cterminal.model.res.ResultRedEnvelopeVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * @className: ResultRedEnvelopeService
 * @description: TODO
 * @author: DAIYALU
 * @date: 2025/6/5
 * @version: 1.0
 */
public interface ResultRedEnvelopeService extends IService<SystemResultRedEnvelope> {

    List<ResultRedEnvelopeVO> getList();

    /**
     * 根据订单金额获取红包金额
     *
     * @param orderAmount 订单金额
     * @return 红包金额
     */
    BigDecimal getRedEnvelopeAmount(BigDecimal orderAmount);
}
